#ifndef CLIENT_HANGLE_MSG_H
#define CLIENT_HANGLE_MSG_H
#include "ClientSocketEx.h"
#include "..\Server\Uncopyable.h"
#include "..\..\Server\user_info.h"
class CLoginDlg;
#include "Resource.h"
#include "Client.h"



class HandleMsg:private Uncopyable
{
public:
	HandleMsg(void);
	~HandleMsg(void);
	static HandleMsg *pHandle;
	static HandleMsg *GetInstance();
	static void       FreeInstance();

	BOOL Login();
	BOOL DoConnect(LPCTSTR lpszUser,LPCTSTR lpszPasswd, LPCTSTR lpszServer, UINT nPort);
	BOOL SendMsg( CString strCmd );
	void ProcessReceiveData(LPCSTR lpData);
	void ServerClosed();


private:
	ClientSocketEx*  m_pClientSocketEx;
	USERINFO       m_userinfo;

};





#endif





